"""
1.iter()
next()

2. __iter__()

"""

it = iter('你好世界!')

print(next(it))
print(next(it))


it2 = 'java编程'.__iter__()

print(it2.__next__())
print(it2.__next__())


s = '我是数据'
it = s.__iter__()

while 1:
    try:
        data = it.__next__()
        print(data)
    except StopIteration:
        break
